package com.hxzy.controller.admin.contamer.req;

import cn.hutool.core.date.DateUtil;
import com.hxzy.common.req.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ApiModel(value = "客户查询模型")
public class ContamerSearchReq extends PageReq {

    //"2024-02-01"  springmvc默认不能把 string --> date
    @ApiModelProperty(value = "开始时间(yyyy-MM-dd)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @ApiModelProperty(value = "结束时间(yyyy-MM-dd)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "账号")
    private String loginId;

    @ApiModelProperty(value = "用户名")
    private String  userName;

}
